<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>用户中心</title>
	<link rel="stylesheet" type="text/css" href="/static/index/css/reset.css">
	<link rel="stylesheet" type="text/css" href="/static/index/css/jquery.pagination.css">
    <link rel="stylesheet" type="text/css" href="/static/index/css/main.css">
    <script type="text/javascript" src="/static/index/js/jquery-1.12.4.min.js"></script>
	<script type="text/javascript" src="/static/index/js/jquery.pagination.min.js"></script>
</head>
<body class="inframe_body">
    <div class="news_list">
        <h3>新闻列表</h3>
        <ul class="article_list">
            {% for news in news_list %}
            {% if news.get('status') == 0 %}
            <li><a href="{{ url_for('index_blue.detail', news_id=news.get('id')) }}" target="_blank">{{ news.get('title') }}</a><em class="pass">已通过</em><span>{{ news.get('create_time') }}</span></li>
            {% elif news.get('status') == 1 %}
            <li><a href="#">{{ news.get('title') }}</a><em class="review">审核中</em><span>{{ news.get('create_time') }}</span></li>
            {% else %}
            <li>
                <a href="#">{{ news.get('title') }}</a>
                <em class="nopass">未通过</em>
                <span>{{ news.get('create_time') }}</span>
                <b>未通过原因：{{ news.get('reason') }}</b>
            </li>
            {% endif %}
            {% endfor %}
        </ul>




        <div id="pagination" class="page">
                <div class="ui-pagination-container">
                    <a href="{{ url_for('user_blue.user_news_list') }}?page=1" class="ui-pagination-page-item">首页</a>
                    {% if paginate.has_prev %}
                    <a href="{{ url_for('user_blue.user_news_list') }}?page={{ paginate.prev_num }}" class="ui-pagination-page-item">上一页</a>
                    {% endif %}
    
                    {% for num in paginate.iter_pages() %}
                    {% if num == paginate.page %}
                    <a href="#" class="ui-pagination-page-item active">{{ num }}</a>
                    {% elif num %}
                    <a href="{{ url_for('user_blue.user_news_list') }}?page={{ num }}" class="ui-pagination-page-item">{{ num }}</a>
                    {% else %}
                    <a href="#" class="ui-pagination-page-item">...</a>
                    {% endif %}
    
                    {% endfor %}
                    {% if paginate.has_next %}
                    <a href="{{ url_for('user_blue.user_news_list') }}?page={{ paginate.next_num }}" class="ui-pagination-page-item">下一页</a>
                    {% endif %}
                    <a href="{{ url_for('user_blue.user_news_list') }}?page={{ paginate.pages }}" class="ui-pagination-page-item">尾页</a>
                </div>
            </div>
       
    </div>
</body>
</html>